import Vue from 'vue'
import App from './App.vue'
import router from './router'
// base配置
import '@/assets/css/base.css'
// 引入饿了么
import {Select,Option,Progress,Input,Table,TableColumn,Button,Dialog,Form,FormItem,MessageBox,Message,Switch } from 'element-ui'
// 注册websocket
// import websocket from './utils/websocket'
// Vue.prototype.$websocket = websocket

import axios from 'axios'
Vue.prototype.$axios = axios
// import debounce from './common/common'
// Vue.mixin(debounce)
Vue.use(Select)
Vue.use(Option)
Vue.use(Progress)
Vue.use(Input)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Button)
Vue.use(Dialog)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Switch)

// Vue.use(MessageBox)
// Vue.use(Message)
// Vue.use(Notification)
Vue.config.productionTip = false
// 局部注册，使用提示框必须在原型上挂在confirm，不然报错,
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$message= Message

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
